package com.fcat.common.user.service;

import com.fcat.springboot.mybatis.service.TsuantoneBaseService;
import com.fcat.common.user.entity.Role;
import com.fcat.common.user.vo.RoleGroupVO;
import com.fcat.common.user.vo.UserRoleVO;

import java.util.List;
import java.util.Map;

public interface RoleService extends TsuantoneBaseService<Role> {

    List<String> getSystemDefaultRoleName();

    List<Long> getSystemDefaultRoleId();

    boolean updateRole(String authorization, Long roleId, List<Long> longs);

    List<Role> getListByUser(Map<String,Object> map);


    List<Role> getListByCompnayIdAndUsername(Map<String, Object> map);

    boolean getUserIsAdmin(Map<String, Object> map) ;

    List<UserRoleVO> getByCompanyIdAndId(Long companyId, Long id);


    Integer getUserCountByRoleId(Map<String, Object> map);
}